package com.xz.courseschedule.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xz.courseschedule.entity.Task;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface TaskMapper extends BaseMapper<Task> {

    @Select("select distinct class_no from task")
    List<String> selectClassNo();

    @Select("select distinct ${columnName} from task")
    List<String> selectByColumnName(@Param("columnName") String columnName);

    @Update("truncate task")
    void clearClassTaskOld();


}
